package com.sgb.kjwl.viewmodel.transport;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

import com.sgb.kjwl.model.entity.transport.GoodsInfoTypeEntity3;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: 杨畔
 * @date: 2020/12/29 18:14
 * @Description:
 */
public class BiddingCargoPublishCostViewModel extends AndroidViewModel {
    public MutableLiveData<List<GoodsInfoTypeEntity3>> ldPay = new MutableLiveData<>();
    public MutableLiveData<List<GoodsInfoTypeEntity3>> ldTax = new MutableLiveData<>();

    public BiddingCargoPublishCostViewModel(@NonNull Application application) {
        super(application);
    }

    /**
     * 获取支付方式
     */
    public void getPayType() {
        List<GoodsInfoTypeEntity3> list = new ArrayList<>();
        list.add(new GoodsInfoTypeEntity3("0", "款到发货"));
        list.add(new GoodsInfoTypeEntity3("1", "货到付款"));
        list.add(new GoodsInfoTypeEntity3("2", "分批支付"));
        list.add(new GoodsInfoTypeEntity3("3", "月结"));
        ldPay.postValue(list);
    }

    /**
     * 获取是否含税
     */
    public void getTax() {
        List<GoodsInfoTypeEntity3> list = new ArrayList<>();
        list.add(new GoodsInfoTypeEntity3("0", "不含税"));
        list.add(new GoodsInfoTypeEntity3("1", "含税"));
        ldTax.postValue(list);
    }
}
